<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<title>OpenCV: cv::Size_&lt; _Tp &gt; Class Template Reference</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon" />
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../tutorial-utils.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
   &#160;<span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></li><li class="navelem"><a class="el" href="../../d6/d50/classcv_1_1Size__.html">Size_</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="../../da/d43/classcv_1_1Size__-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cv::Size_&lt; _Tp &gt; Class Template Reference<div class="ingroups"><a class="el" href="../../d0/de1/group__core.html">Core functionality</a> &raquo; <a class="el" href="../../dc/d84/group__core__basic.html">Basic structures</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Template class for specifying the size of an image or rectangle.  
 <a href="../../d6/d50/classcv_1_1Size__.html#details">More...</a></p>

<p><code>#include &lt;opencv2/core/types.hpp&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a545d43b608de451311855c2ef808642d"><td class="memItemLeft" align="right" valign="top">typedef _Tp&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d50/classcv_1_1Size__.html#a545d43b608de451311855c2ef808642d">value_type</a></td></tr>
<tr class="separator:a545d43b608de451311855c2ef808642d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ae09ae11fd75a16928ca40980ad46a9bf"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d50/classcv_1_1Size__.html#ae09ae11fd75a16928ca40980ad46a9bf">Size_</a> ()</td></tr>
<tr class="memdesc:ae09ae11fd75a16928ca40980ad46a9bf"><td class="mdescLeft">&#160;</td><td class="mdescRight">default constructor  <a href="#ae09ae11fd75a16928ca40980ad46a9bf">More...</a><br /></td></tr>
<tr class="separator:ae09ae11fd75a16928ca40980ad46a9bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45c97e9a4930d73fde11c2acc5f371ac"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d50/classcv_1_1Size__.html#a45c97e9a4930d73fde11c2acc5f371ac">Size_</a> (_Tp _width, _Tp _height)</td></tr>
<tr class="separator:a45c97e9a4930d73fde11c2acc5f371ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe760f15bf01a0ee3f51d81f4f8ea259"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d50/classcv_1_1Size__.html#abe760f15bf01a0ee3f51d81f4f8ea259">Size_</a> (const <a class="el" href="../../d6/d50/classcv_1_1Size__.html">Size_</a> &amp;sz)</td></tr>
<tr class="separator:abe760f15bf01a0ee3f51d81f4f8ea259"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae220b36673041edafc81c0e9677eb609"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d50/classcv_1_1Size__.html#ae220b36673041edafc81c0e9677eb609">Size_</a> (<a class="el" href="../../d6/d50/classcv_1_1Size__.html">Size_</a> &amp;&amp;sz) <a class="el" href="../../db/de0/group__core__utils.html#ga7b88772bee40b329b585a3a2157abd9b">CV_NOEXCEPT</a></td></tr>
<tr class="separator:ae220b36673041edafc81c0e9677eb609"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c6d59e6fe58dc2cda78504271b7ec6c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d50/classcv_1_1Size__.html#a2c6d59e6fe58dc2cda78504271b7ec6c">Size_</a> (const <a class="el" href="../../db/d4e/classcv_1_1Point__.html">Point_</a>&lt; _Tp &gt; &amp;pt)</td></tr>
<tr class="separator:a2c6d59e6fe58dc2cda78504271b7ec6c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8cc3d32e40c9b5324d316c35c4773dff"><td class="memItemLeft" align="right" valign="top">_Tp&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d50/classcv_1_1Size__.html#a8cc3d32e40c9b5324d316c35c4773dff">area</a> () const</td></tr>
<tr class="memdesc:a8cc3d32e40c9b5324d316c35c4773dff"><td class="mdescLeft">&#160;</td><td class="mdescRight">the area (width*height)  <a href="#a8cc3d32e40c9b5324d316c35c4773dff">More...</a><br /></td></tr>
<tr class="separator:a8cc3d32e40c9b5324d316c35c4773dff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b608524f19d01184e6e954b976e102f"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d50/classcv_1_1Size__.html#a2b608524f19d01184e6e954b976e102f">aspectRatio</a> () const</td></tr>
<tr class="memdesc:a2b608524f19d01184e6e954b976e102f"><td class="mdescLeft">&#160;</td><td class="mdescRight">aspect ratio (width/height)  <a href="#a2b608524f19d01184e6e954b976e102f">More...</a><br /></td></tr>
<tr class="separator:a2b608524f19d01184e6e954b976e102f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b48a642590e90eca132348924078521"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d50/classcv_1_1Size__.html#a0b48a642590e90eca132348924078521">empty</a> () const</td></tr>
<tr class="memdesc:a0b48a642590e90eca132348924078521"><td class="mdescLeft">&#160;</td><td class="mdescRight">true if empty  <a href="#a0b48a642590e90eca132348924078521">More...</a><br /></td></tr>
<tr class="separator:a0b48a642590e90eca132348924078521"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2479ca9cf7100d03f2f8369c1ac3a6a1"><td class="memTemplParams" colspan="2">template&lt;typename _Tp2 &gt; </td></tr>
<tr class="memitem:a2479ca9cf7100d03f2f8369c1ac3a6a1"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../d6/d50/classcv_1_1Size__.html#a2479ca9cf7100d03f2f8369c1ac3a6a1">operator Size_&lt; _Tp2 &gt;</a> () const</td></tr>
<tr class="memdesc:a2479ca9cf7100d03f2f8369c1ac3a6a1"><td class="mdescLeft">&#160;</td><td class="mdescRight">conversion of another data type.  <a href="#a2479ca9cf7100d03f2f8369c1ac3a6a1">More...</a><br /></td></tr>
<tr class="separator:a2479ca9cf7100d03f2f8369c1ac3a6a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a115285576d3211b24bda4628ee7f4d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d6/d50/classcv_1_1Size__.html">Size_</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d50/classcv_1_1Size__.html#a7a115285576d3211b24bda4628ee7f4d">operator=</a> (const <a class="el" href="../../d6/d50/classcv_1_1Size__.html">Size_</a> &amp;sz)</td></tr>
<tr class="separator:a7a115285576d3211b24bda4628ee7f4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa7a87199e67360f44636ec30b1183fcd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d6/d50/classcv_1_1Size__.html">Size_</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d50/classcv_1_1Size__.html#aa7a87199e67360f44636ec30b1183fcd">operator=</a> (<a class="el" href="../../d6/d50/classcv_1_1Size__.html">Size_</a> &amp;&amp;sz) <a class="el" href="../../db/de0/group__core__utils.html#ga7b88772bee40b329b585a3a2157abd9b">CV_NOEXCEPT</a></td></tr>
<tr class="separator:aa7a87199e67360f44636ec30b1183fcd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a1d289dce6b5d8006a54f3ee0259fc545"><td class="memItemLeft" align="right" valign="top">_Tp&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d50/classcv_1_1Size__.html#a1d289dce6b5d8006a54f3ee0259fc545">height</a></td></tr>
<tr class="memdesc:a1d289dce6b5d8006a54f3ee0259fc545"><td class="mdescLeft">&#160;</td><td class="mdescRight">the height  <a href="#a1d289dce6b5d8006a54f3ee0259fc545">More...</a><br /></td></tr>
<tr class="separator:a1d289dce6b5d8006a54f3ee0259fc545"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abfe0367b32c407ddccf5ddf92667c73d"><td class="memItemLeft" align="right" valign="top">_Tp&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d50/classcv_1_1Size__.html#abfe0367b32c407ddccf5ddf92667c73d">width</a></td></tr>
<tr class="memdesc:abfe0367b32c407ddccf5ddf92667c73d"><td class="mdescLeft">&#160;</td><td class="mdescRight">the width  <a href="#abfe0367b32c407ddccf5ddf92667c73d">More...</a><br /></td></tr>
<tr class="separator:abfe0367b32c407ddccf5ddf92667c73d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename _Tp&gt;<br />
class cv::Size_&lt; _Tp &gt;</h3>

<p>Template class for specifying the size of an image or rectangle. </p>
<p>The class includes two members called width and height. The structure can be converted to and from the old OpenCV structures CvSize and CvSize2D32f . The same set of arithmetic and comparison operations as for <a class="el" href="../../db/d4e/classcv_1_1Point__.html" title="Template class for 2D points specified by its coordinates x and y. ">Point_</a> is available.</p>
<p>OpenCV defines the following <a class="el" href="../../d6/d50/classcv_1_1Size__.html" title="Template class for specifying the size of an image or rectangle. ">Size_</a>&lt;&gt; aliases: </p><div class="fragment"><div class="line"><span class="keyword">typedef</span> Size_&lt;int&gt; <a class="code" href="../../dc/d84/group__core__basic.html#ga5ef7f5978948e0cb3c3a3d4172594aec">Size2i</a>;</div><div class="line"><span class="keyword">typedef</span> Size2i <a class="code" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a>;</div><div class="line"><span class="keyword">typedef</span> Size_&lt;float&gt; <a class="code" href="../../dc/d84/group__core__basic.html#gab34496d2466b5f69930ab74c70f117d4">Size2f</a>;</div></div><!-- fragment --> <dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d1/d9e/fld_lines_8cpp-example.html#_a21">fld_lines.cpp</a>, <a class="el" href="../../d0/d38/modules_2shape_2samples_2shape_example_8cpp-example.html#_a12">modules/shape/samples/shape_example.cpp</a>, <a class="el" href="../../d9/d73/samples_2cpp_2fitellipse_8cpp-example.html#_a27">samples/cpp/fitellipse.cpp</a>, <a class="el" href="../../d2/d1d/samples_2cpp_2lkdemo_8cpp-example.html#_a8">samples/cpp/lkdemo.cpp</a>, <a class="el" href="../../d9/dd8/samples_2cpp_2stitching_detailed_8cpp-example.html#_a43">samples/cpp/stitching_detailed.cpp</a>, <a class="el" href="../../d0/df8/samples_2cpp_2train_HOG_8cpp-example.html#_a1">samples/cpp/train_HOG.cpp</a>, <a class="el" href="../../de/d45/samples_2cpp_2tutorial_code_2features2D_2Homography_2decompose_homography_8cpp-example.html#_a0">samples/cpp/tutorial_code/features2D/Homography/decompose_homography.cpp</a>, <a class="el" href="../../d9/d47/samples_2cpp_2tutorial_code_2features2D_2Homography_2homography_from_camera_displacement_8cpp-example.html#_a0">samples/cpp/tutorial_code/features2D/Homography/homography_from_camera_displacement.cpp</a>, <a class="el" href="../../d0/d92/samples_2cpp_2tutorial_code_2features2D_2Homography_2pose_from_homography_8cpp-example.html#_a0">samples/cpp/tutorial_code/features2D/Homography/pose_from_homography.cpp</a>, <a class="el" href="../../de/d06/samples_2cpp_2tutorial_code_2ImgProc_2basic_drawing_2Drawing_2_8cpp-example.html#_a15">samples/cpp/tutorial_code/ImgProc/basic_drawing/Drawing_2.cpp</a>, <a class="el" href="../../d3/d9c/samples_2cpp_2tutorial_code_2videoio_2video-write_2video-write_8cpp-example.html#_a4">samples/cpp/tutorial_code/videoio/video-write/video-write.cpp</a>, <a class="el" href="../../de/dd4/samples_2cpp_2warpPerspective_demo_8cpp-example.html#_a2">samples/cpp/warpPerspective_demo.cpp</a>, <a class="el" href="../../d6/d39/samples_2dnn_2colorization_8cpp-example.html#_a22">samples/dnn/colorization.cpp</a>, <a class="el" href="../../d4/db9/samples_2dnn_2object_detection_8cpp-example.html#_a1">samples/dnn/object_detection.cpp</a>, <a class="el" href="../../db/da4/samples_2dnn_2text_detection_8cpp-example.html#_a9">samples/dnn/text_detection.cpp</a>, and <a class="el" href="../../d8/d61/samples_2tapi_2hog_8cpp-example.html#_a9">samples/tapi/hog.cpp</a>.</dd>
</dl></div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="a545d43b608de451311855c2ef808642d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a545d43b608de451311855c2ef808642d">&#9670;&nbsp;</a></span>value_type</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _Tp&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef _Tp <a class="el" href="../../d6/d50/classcv_1_1Size__.html">cv::Size_</a>&lt; _Tp &gt;::<a class="el" href="../../d6/d50/classcv_1_1Size__.html#a545d43b608de451311855c2ef808642d">value_type</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ae09ae11fd75a16928ca40980ad46a9bf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae09ae11fd75a16928ca40980ad46a9bf">&#9670;&nbsp;</a></span>Size_() <span class="overload">[1/5]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _Tp&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d6/d50/classcv_1_1Size__.html">cv::Size_</a>&lt; _Tp &gt;::<a class="el" href="../../d6/d50/classcv_1_1Size__.html">Size_</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>default constructor </p>

</div>
</div>
<a id="a45c97e9a4930d73fde11c2acc5f371ac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a45c97e9a4930d73fde11c2acc5f371ac">&#9670;&nbsp;</a></span>Size_() <span class="overload">[2/5]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _Tp&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d6/d50/classcv_1_1Size__.html">cv::Size_</a>&lt; _Tp &gt;::<a class="el" href="../../d6/d50/classcv_1_1Size__.html">Size_</a> </td>
          <td>(</td>
          <td class="paramtype">_Tp&#160;</td>
          <td class="paramname"><em>_width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">_Tp&#160;</td>
          <td class="paramname"><em>_height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="abe760f15bf01a0ee3f51d81f4f8ea259"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abe760f15bf01a0ee3f51d81f4f8ea259">&#9670;&nbsp;</a></span>Size_() <span class="overload">[3/5]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _Tp&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d6/d50/classcv_1_1Size__.html">cv::Size_</a>&lt; _Tp &gt;::<a class="el" href="../../d6/d50/classcv_1_1Size__.html">Size_</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d6/d50/classcv_1_1Size__.html">Size_</a>&lt; _Tp &gt; &amp;&#160;</td>
          <td class="paramname"><em>sz</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ae220b36673041edafc81c0e9677eb609"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae220b36673041edafc81c0e9677eb609">&#9670;&nbsp;</a></span>Size_() <span class="overload">[4/5]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _Tp&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d6/d50/classcv_1_1Size__.html">cv::Size_</a>&lt; _Tp &gt;::<a class="el" href="../../d6/d50/classcv_1_1Size__.html">Size_</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d6/d50/classcv_1_1Size__.html">Size_</a>&lt; _Tp &gt; &amp;&amp;&#160;</td>
          <td class="paramname"><em>sz</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a2c6d59e6fe58dc2cda78504271b7ec6c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2c6d59e6fe58dc2cda78504271b7ec6c">&#9670;&nbsp;</a></span>Size_() <span class="overload">[5/5]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _Tp&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d6/d50/classcv_1_1Size__.html">cv::Size_</a>&lt; _Tp &gt;::<a class="el" href="../../d6/d50/classcv_1_1Size__.html">Size_</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../db/d4e/classcv_1_1Point__.html">Point_</a>&lt; _Tp &gt; &amp;&#160;</td>
          <td class="paramname"><em>pt</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a8cc3d32e40c9b5324d316c35c4773dff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8cc3d32e40c9b5324d316c35c4773dff">&#9670;&nbsp;</a></span>area()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _Tp&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">_Tp <a class="el" href="../../d6/d50/classcv_1_1Size__.html">cv::Size_</a>&lt; _Tp &gt;::area </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>the area (width*height) </p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d9/dd8/samples_2cpp_2stitching_detailed_8cpp-example.html#a56">samples/cpp/stitching_detailed.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="a2b608524f19d01184e6e954b976e102f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2b608524f19d01184e6e954b976e102f">&#9670;&nbsp;</a></span>aspectRatio()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _Tp&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="../../d6/d50/classcv_1_1Size__.html">cv::Size_</a>&lt; _Tp &gt;::aspectRatio </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>aspect ratio (width/height) </p>

</div>
</div>
<a id="a0b48a642590e90eca132348924078521"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0b48a642590e90eca132348924078521">&#9670;&nbsp;</a></span>empty()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _Tp&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="../../d6/d50/classcv_1_1Size__.html">cv::Size_</a>&lt; _Tp &gt;::empty </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>true if empty </p>

</div>
</div>
<a id="a2479ca9cf7100d03f2f8369c1ac3a6a1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2479ca9cf7100d03f2f8369c1ac3a6a1">&#9670;&nbsp;</a></span>operator Size_< _Tp2 >()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _Tp&gt; </div>
<div class="memtemplate">
template&lt;typename _Tp2 &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d6/d50/classcv_1_1Size__.html">cv::Size_</a>&lt; _Tp &gt;::operator <a class="el" href="../../d6/d50/classcv_1_1Size__.html">Size_</a>&lt; _Tp2 &gt; </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>conversion of another data type. </p>

</div>
</div>
<a id="a7a115285576d3211b24bda4628ee7f4d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7a115285576d3211b24bda4628ee7f4d">&#9670;&nbsp;</a></span>operator=() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _Tp&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d6/d50/classcv_1_1Size__.html">Size_</a>&amp; <a class="el" href="../../d6/d50/classcv_1_1Size__.html">cv::Size_</a>&lt; _Tp &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d6/d50/classcv_1_1Size__.html">Size_</a>&lt; _Tp &gt; &amp;&#160;</td>
          <td class="paramname"><em>sz</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aa7a87199e67360f44636ec30b1183fcd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa7a87199e67360f44636ec30b1183fcd">&#9670;&nbsp;</a></span>operator=() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _Tp&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d6/d50/classcv_1_1Size__.html">Size_</a>&amp; <a class="el" href="../../d6/d50/classcv_1_1Size__.html">cv::Size_</a>&lt; _Tp &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d6/d50/classcv_1_1Size__.html">Size_</a>&lt; _Tp &gt; &amp;&amp;&#160;</td>
          <td class="paramname"><em>sz</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a1d289dce6b5d8006a54f3ee0259fc545"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1d289dce6b5d8006a54f3ee0259fc545">&#9670;&nbsp;</a></span>height</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _Tp&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">_Tp <a class="el" href="../../d6/d50/classcv_1_1Size__.html">cv::Size_</a>&lt; _Tp &gt;::height</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>the height </p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d9/d73/samples_2cpp_2fitellipse_8cpp-example.html#a30">samples/cpp/fitellipse.cpp</a>, <a class="el" href="../../d9/dd8/samples_2cpp_2stitching_detailed_8cpp-example.html#a47">samples/cpp/stitching_detailed.cpp</a>, <a class="el" href="../../d0/df8/samples_2cpp_2train_HOG_8cpp-example.html#a25">samples/cpp/train_HOG.cpp</a>, <a class="el" href="../../de/d45/samples_2cpp_2tutorial_code_2features2D_2Homography_2decompose_homography_8cpp-example.html#a1">samples/cpp/tutorial_code/features2D/Homography/decompose_homography.cpp</a>, <a class="el" href="../../d9/d47/samples_2cpp_2tutorial_code_2features2D_2Homography_2homography_from_camera_displacement_8cpp-example.html#a1">samples/cpp/tutorial_code/features2D/Homography/homography_from_camera_displacement.cpp</a>, <a class="el" href="../../d0/d92/samples_2cpp_2tutorial_code_2features2D_2Homography_2pose_from_homography_8cpp-example.html#a1">samples/cpp/tutorial_code/features2D/Homography/pose_from_homography.cpp</a>, <a class="el" href="../../de/d06/samples_2cpp_2tutorial_code_2ImgProc_2basic_drawing_2Drawing_2_8cpp-example.html#a17">samples/cpp/tutorial_code/ImgProc/basic_drawing/Drawing_2.cpp</a>, <a class="el" href="../../d3/d9c/samples_2cpp_2tutorial_code_2videoio_2video-write_2video-write_8cpp-example.html#a12">samples/cpp/tutorial_code/videoio/video-write/video-write.cpp</a>, <a class="el" href="../../d4/db9/samples_2dnn_2object_detection_8cpp-example.html#a34">samples/dnn/object_detection.cpp</a>, and <a class="el" href="../../db/da4/samples_2dnn_2text_detection_8cpp-example.html#a22">samples/dnn/text_detection.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="abfe0367b32c407ddccf5ddf92667c73d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abfe0367b32c407ddccf5ddf92667c73d">&#9670;&nbsp;</a></span>width</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _Tp&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">_Tp <a class="el" href="../../d6/d50/classcv_1_1Size__.html">cv::Size_</a>&lt; _Tp &gt;::width</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>the width </p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d0/d38/modules_2shape_2samples_2shape_example_8cpp-example.html#a20">modules/shape/samples/shape_example.cpp</a>, <a class="el" href="../../d9/d73/samples_2cpp_2fitellipse_8cpp-example.html#a32">samples/cpp/fitellipse.cpp</a>, <a class="el" href="../../d9/dd8/samples_2cpp_2stitching_detailed_8cpp-example.html#a45">samples/cpp/stitching_detailed.cpp</a>, <a class="el" href="../../d0/df8/samples_2cpp_2train_HOG_8cpp-example.html#a23">samples/cpp/train_HOG.cpp</a>, <a class="el" href="../../de/d45/samples_2cpp_2tutorial_code_2features2D_2Homography_2decompose_homography_8cpp-example.html#a2">samples/cpp/tutorial_code/features2D/Homography/decompose_homography.cpp</a>, <a class="el" href="../../d9/d47/samples_2cpp_2tutorial_code_2features2D_2Homography_2homography_from_camera_displacement_8cpp-example.html#a2">samples/cpp/tutorial_code/features2D/Homography/homography_from_camera_displacement.cpp</a>, <a class="el" href="../../d0/d92/samples_2cpp_2tutorial_code_2features2D_2Homography_2pose_from_homography_8cpp-example.html#a2">samples/cpp/tutorial_code/features2D/Homography/pose_from_homography.cpp</a>, <a class="el" href="../../de/d06/samples_2cpp_2tutorial_code_2ImgProc_2basic_drawing_2Drawing_2_8cpp-example.html#a16">samples/cpp/tutorial_code/ImgProc/basic_drawing/Drawing_2.cpp</a>, <a class="el" href="../../d3/d9c/samples_2cpp_2tutorial_code_2videoio_2video-write_2video-write_8cpp-example.html#a11">samples/cpp/tutorial_code/videoio/video-write/video-write.cpp</a>, <a class="el" href="../../d4/db9/samples_2dnn_2object_detection_8cpp-example.html#a32">samples/dnn/object_detection.cpp</a>, and <a class="el" href="../../db/da4/samples_2dnn_2text_detection_8cpp-example.html#a23">samples/dnn/text_detection.cpp</a>.</dd>
</dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>opencv2/core/<a class="el" href="../../db/dfc/modules_2core_2include_2opencv2_2core_2types_8hpp.html">types.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:43 for OpenCV by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
